<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta content="width=device-width, initial-scale=1" name="viewport">
    <title>玉灵 QQ:7031633 Email:webrx@126.com</title>
    <meta content="关键字" name="keywords">
    <meta content="简介" name="description">
</head>

<body>

<script>
    let dd = document.body
    //text()  json()
    fetch('http://192.168.14.58:8080/dbs.action').then(r => r.json()).then(res => {
        //console.log(res.length)

        //res.forEach(item => {
        //    dd.innerHTML += `<h5>${item}</h5>`
        //})

        console.log(res.id)
        console.log(res.name)
        console.log(res.stu)
        let ss = res.birth.split('-')
        let s2 = [ss[0], '年', ss[1], '月', ss[2], '日']
        console.log(s2.join(''))

    })
</script>
</body>
</html>
